import SvgIcon from '@/components/svgIcon/index.vue'

const allGlobalComponent: Record<string, object> = {SvgIcon}

export default {
  install(app: any) {
    Object.keys(allGlobalComponent)
      .forEach(componentName => {app.component(componentName, allGlobalComponent[componentName])})
  }
}